#设置源文件
set(CORE_SERVER_SOURCES
        TCP_Master.c
)
set(CORE_SERVER_HEADERS
        TCP_Master.h
)

#创建静态库
add_library(core_server STATIC ${CORE_SERVER_SOURCES})
target_compile_definitions(core_server PRIVATE _GUN_SOURCE)
#设置包含目录
target_include_directories(core_server
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
        PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/src
)

#连接依赖;
target_link_libraries(core_server
        PUBLIC
        Threads::Threads
        thread_pool
        protocols_dlt645
        protocols_modbus
        connection_manager
)
